select Type,name indexid from spidx where Name='$id' or [Table]='$id'
--union all
--select 'NoIndex',name indexid  from sysobjects where name='$id' and  TYPe='U' 
